package org.jeecg.access.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import java.io.Serializable;

/**
 * @description: todo
 * @author: taogang
 * @date: 2025/7/30 9:54
 */
@Data
@TableName("platform_account")
public class PlatformAccount implements Serializable {

    private static final long serialVersionUID = 1L;

    @Id
    private String id;

    @Column(name = "name")
    private String name;

    @Column(name = "description")
    private String description;

    /** 账户的标识 ，各个平台格式不太统一
     * 抖音，微博，哔哩哔哩，小红书
     * **/
    @Column(name = "account_id")
    private String accountId;


    /**微信  快手**/
    @Column(name = "app_id")
    private String appId;

    /**微信 哔哩哔哩  快手**/
    @Column(name = "app_secret")
    private String appSecret;

    /**哔哩哔哩 **/
    @Column(name = "client_id")
    private String clientId;

    /** 平台类型 具体值参见 PlatformType **/
    @Column(name = "platform_type")
    private String platformType;

    /**抖音 **/
    @Column(name = "client_key")
    private String clientKey;

    /**抖音 **/
    @Column(name = "client_secret")
    private String clientSecret;

    /**分享链接 一定提示用户是从app获取到的，网页获取到的无效
     * 快手
     * **/
    @Column(name = "share_url")
    private String shareUrl;

    /**小红书在获取数据的时候必须的数据**/
    @Column(name = "cookie")
    private String cookie;

    @Column(name = "creator")
    private String creator;

    @Column(name = "create_time")
    private String createTime;

    @Column(name = "updater")
    private String updater;

    @Column(name = "update_time")
    private String updateTime;

    /**标识账号的状态，默认0标识账号可用，1标识删除，目前2标识微信账号的接口调用无权限**/
    @Column(name = "state")
    private Integer state;
}
